package io.renren.modules.device.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 大楼
 * 
 * @author lwm
 * @email 
 * @date 2019-01-08 10:55:54
 */
@TableName("tb_building")
public class BuildingEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 大楼编号
	 */
	private String buildingCode;
	/**
	 * 省
	 */
	private String provinces;
	/**
	 * 市
	 */
	private String cities;
	/**
	 * 县
	 */
	private String counties;
	/**
	 * 楼名
	 */
	private String buildingName;
	/**
	 * 总楼层数
	 */
	private Integer buildingNum;

	/*
	所属机构
	 */
	private Long deptId;

	@TableField(exist = false)
	private String deptName;


	/**
	 * 创建时间
	 */
	//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/**
	 * 设置：
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Long getId() {
		return id;
	}


	/**
	 * 设置：大楼编号
	 */
	public void setBuildingCode(String buildingCode) {
		this.buildingCode = buildingCode;
	}
	/**
	 * 获取：大楼编号
	 */
	public String getBuildingCode() {
		return buildingCode;
	}
	/**
	 * 设置：省
	 */
	public void setProvinces(String provinces) {
		this.provinces = provinces;
	}
	/**
	 * 获取：省
	 */
	public String getProvinces() {
		return provinces;
	}
	/**
	 * 设置：市
	 */
	public void setCities(String cities) {
		this.cities = cities;
	}
	/**
	 * 获取：市
	 */
	public String getCities() {
		return cities;
	}
	/**
	 * 设置：县
	 */
	public void setCounties(String counties) {
		this.counties = counties;
	}
	/**
	 * 获取：县
	 */
	public String getCounties() {
		return counties;
	}
	/**
	 * 设置：楼名
	 */
	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}
	/**
	 * 获取：楼名
	 */
	public String getBuildingName() {
		return buildingName;
	}
	/**
	 * 设置：总楼层数
	 */
	public void setBuildingNum(Integer buildingNum) {
		this.buildingNum = buildingNum;
	}
	/**
	 * 获取：总楼层数
	 */
	public Integer getBuildingNum() {
		return buildingNum;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
}
